package server;

import java.net.Socket;

import messages.Message;
import util.Connection;

public class MessageInfo {
	private Connection connection; 
	private Message message;
	
	public MessageInfo(Connection c, Message m) {
		this.connection = c;
		this.message = m;
	}
	
	public Connection getConnection() {
		return connection;
	}
	
	public Socket getSocket() {
		return connection.getSocket();
	}
	
	public Message getMessage() {
		return message;
	}

}
